import React, {Component,PropTypes} from 'react'
import './progress.css'
class Progress extends Component {
  render() {
    const {width} = this.props
    return (
        <div className="progress">
          <div className="progress-bar">
            <div className="progress-bar-inner" style={{width:width+'%'}}></div>
          </div>
        </div>
    );
  }
}
Progress.propTypes = {
  width: PropTypes.number.isRequired
}
export default Progress;
